package com.example.bookmanage.service;
import com.example.bookmanage.dao.UserMapper;
import com.example.bookmanage.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserServiceImpl implements UserService{

    private UserMapper userMapper;
    @Autowired
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public User login(String account, String password) {
        return userMapper.selectUserByMsg(account, password);
    }
}
